<template>
    <div>
        <div class="dashboardbox">
            <div class="titbox">问卷调查排行榜</div>
            <div class="infobox">
                <div class="infobox_item">
                    <div class="infobox_item_title">{{ wj_trade_total_census }}</div>
                    <div class="infobox_item_text">问卷总任务数</div>
                </div>
                <div class="infobox_item">
                    <div class="infobox_item_title">{{ wjdc_total }}</div>
                    <div class="infobox_item_text">完成问卷总数</div>
                </div>
            </div>
            <v-chart class="dashboard-chart" :option="option" autoresize></v-chart>
        </div>
    </div>
</template>

<script>
export default {
    name: "boxone",
    props: {
        option: {
            type: Object,
            defulat: {}
        },
        rt_total: {
            type: Number,
            defulat: 0
        },
        yb_total: {
            type: Number,
            defulat: 0
        },
        brt_total: {
            type: Number,
            defulat: 0
        },
        people_total: {
            type: Number,
            defulat: 0
        },
        wj_trade_total_census: {
            defulat: 0
        },
        wjdc_total: {
            defulat: 0
        },
    },
    data() {
        return {

        }
    },

    methods: {

    }

};
</script>

<style scoped>
.dashboard-charts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* margin: 20px 0; */
}
.dashboard-chart {
    box-sizing: border-box;
    width: 97%;
    /* min-width: 49%; */
    /* padding: 20px; */
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    /* padding-top: 0; */
    /*  box-shadow: 0px 0px 0px 0px rgba(150, 150, 150, 0.35);
	    box-shadow: 0px 0px 4px 0px rgba(150, 150, 150, 0.35); */
}
.dashboardbox {
    /* display: flex;
		align-items: center; */
    width: 95%;
    margin: 0 auto;
    height: 53rem;
    /* height: 30rem; */
    /* margin-top: 0.8rem;
		margin-left: 0.6rem;
		padding: 0.6rem 2rem; */
    /* background-image: url("~@/assets/img/42.png"); */
    background: #fff;
    /* background-size: 100% 100%; */
    font-size: 1.6rem;
    color: #23cefd;
    padding: 5px 0;
}
.titbox {
    width: 24rem;
    height: 2.3rem;
    margin: 10px;
    /* background-image: url("~@/assets/image/tit.png");
    background-size: 100% 100%; */

    padding: 0 0.6rem;
    font-size: 1.8rem;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #222222;
}
.infobox {
    display: flex;
    align-items: flex-end;
    height: 7rem;
    justify-content: center;
    gap: 0 4.8rem;
}
.infobox_item {
    width: 17rem;
    height: 100%;
    gap: 0.9rem 0;
    background: #006bf1;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.infobox_item_title {
    font-size: 2.8rem;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #ffffff;
    line-height: 1em;
}
.infobox_item_text {
    width: 9.7rem;
    height: 2rem;
    background: #ffffff;
    border-radius: 3px 3px 3px 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-family: Source Han Sans CN;
    font-weight: 500;
    color: #006bf1;
}
</style>
